//import '../mock/mock'
//const $ajax =  axios.create()
import axios from 'axios'
export const $ajax =  axios.create({
  baseURL: '/api'
})
export const login = data => $ajax.post('/login',data)
export const checkUsername =data =>$ajax.post('/checkUsername',data)
export const $checkUsername =data =>$ajax.post('/checkUsername',data)
//export const $Register = data => $ajax.post('/login',data)